package com.masterclient.app.modules.pay.contract;

import com.eoner.baselibrary.base.BasePresenter;
import com.eoner.baselibrary.base.BaseView;
import com.eoner.baselibrary.bean.pay.AliPayInfoBean;
import com.eoner.baselibrary.bean.pay.PaymentInfoBean;
import com.eoner.baselibrary.bean.pay.WechatPayInfoBean;


public interface PayContract {

    interface View extends BaseView {
        void get_payment_info_success(PaymentInfoBean bean);
        void get_payment_info_failed(String msg);
        void get_wx_prepay_success(WechatPayInfoBean bean);
        void get_wx_prepay_failed(String msg);
        void get_alipay_prepay_uccess(AliPayInfoBean bean);
        void get_alipay_prepay_failed(String msg);
    }
    abstract static class Presenter extends BasePresenter<View> {

        @Override
        public void onStart() {

        }

        //获取列表
        public abstract void get_payment_info(int pay_amount,String channel,String pay_order_no,String uid);
        public abstract void get_wx_prepay(String channel,String order_no);
        public abstract void get_alipay_prepay(String channel,String order_no);

    }
}